﻿//////////////////////////////////////////////////////////////////////////////////// Licensed under the MIT License//// Copyright (c) 2008 Chris Colinsky// All Rights Reserved//// version	0.4// http://code.google.com/p/sugarcookie/// http://code.google.com/p/sugarcookie/wiki/License//////////////////////////////////////////////////////////////////////////////////import flash.external.ExternalInterface;class sugarcookie.browser.Popup {	public static function createPopupWindow (urlStr:String, name:String, props:Object):Void {		var propStr:String = "";		if (props!=null) {			for (var i in props) {				propStr += i+"="+props[i]+",";			}			propStr = propStr.slice(0,-1);		}		_level0.outputtext.text = propStr;		ExternalInterface.call("so.createPopupWindow",urlStr,name,propStr);	}		public static function closePopup(name:String):Void {		ExternalInterface.call("so.closePopup",name);	}}